package com.nail.soulda.person;

import java.util.Random;

import com.nail.soulda.FileStruct;

public class Boss extends IPerson {
	public Boss() {
		super();
	}

	public Boss(String _name, int _sex) {
		super(_name, _sex);	
		Random r = new Random(super.name.hashCode() + (String.valueOf(super.sex)).hashCode());
		super.blood = (int)(r.nextDouble() * 100000);
		super.attack = (int)(r.nextDouble()*10000/2);
		super.defence = (int)(r.nextDouble()*10000/2 + r.nextDouble()*1000);
	}
	
	@Override
	public void showInfo() {
		System.out.println("==============" + this.name + " Info==============");
		System.out.println("= sex: " + (this.sex == FileStruct.Sex.male ? "mail" : "femail"));
		System.out.println("= blood: ???");
		System.out.println("= attack: ???");
		System.out.println("= defence: ???");
		System.out.println("=====================================");
	}
}
